package com.yazi.mxz.behavior.entity.beans;

import com.myframework.smhj.hibernate.Entity;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * Store entity. @author MyEclipse Persistence Tools
 */
@javax.persistence.Entity
@Table(name = "MXZ_STORE", schema = "HCD_DEV")
public class Store extends Entity implements java.io.Serializable {

	// Fields

	private Long storeId;
	private Long companyId;
	private Long regionId;
	private String name;
	private Boolean isOpen;
	private Boolean isOpenOnline;
	private Boolean isOpenLocal;
	private Float goodsScore;
	private Float serviceScore;
	private Float deliveryScore;
	private String logo;
	private String regionPath;
	private String address;
	private Boolean isNewOrder;
	private String contacts;
	private String phone;
	private Double lat;
	private Double lng;
	private Boolean isRecommand;
	private Long recommandSort;
	private Integer putupRemain;
	private Integer promRemain;
	private Integer memRemain;
	private String localSetting;
	private String descr;
	private Long updateTime;
	private Long addTime;

	// Constructors

	/** default constructor */
	public Store() {
	}

	/** minimal constructor */
	public Store(Long companyId, Long regionId, String name, Boolean isOpen, Boolean isOpenOnline,
			Boolean isOpenLocal, Float goodsScore, Float serviceScore, Float deliveryScore,
			String regionPath, String address, Boolean isNewOrder, Boolean isRecommand,
			Long recommandSort, Integer putupRemain, Integer promRemain, Integer memRemain,
			Long updateTime, Long addTime) {
		this.companyId = companyId;
		this.regionId = regionId;
		this.name = name;
		this.isOpen = isOpen;
		this.isOpenOnline = isOpenOnline;
		this.isOpenLocal = isOpenLocal;
		this.goodsScore = goodsScore;
		this.serviceScore = serviceScore;
		this.deliveryScore = deliveryScore;
		this.regionPath = regionPath;
		this.address = address;
		this.isNewOrder = isNewOrder;
		this.isRecommand = isRecommand;
		this.recommandSort = recommandSort;
		this.putupRemain = putupRemain;
		this.promRemain = promRemain;
		this.memRemain = memRemain;
		this.updateTime = updateTime;
		this.addTime = addTime;
	}

	/** full constructor */
	public Store(Long companyId, Long regionId, String name, Boolean isOpen, Boolean isOpenOnline,
			Boolean isOpenLocal, Float goodsScore, Float serviceScore, Float deliveryScore,
			String logo, String regionPath, String address, Boolean isNewOrder, String contacts,
			String phone, Double lat, Double lng, Boolean isRecommand, Long recommandSort,
			Integer putupRemain, Integer promRemain, Integer memRemain, String localSetting,
			String descr, Long updateTime, Long addTime) {
		this.companyId = companyId;
		this.regionId = regionId;
		this.name = name;
		this.isOpen = isOpen;
		this.isOpenOnline = isOpenOnline;
		this.isOpenLocal = isOpenLocal;
		this.goodsScore = goodsScore;
		this.serviceScore = serviceScore;
		this.deliveryScore = deliveryScore;
		this.logo = logo;
		this.regionPath = regionPath;
		this.address = address;
		this.isNewOrder = isNewOrder;
		this.contacts = contacts;
		this.phone = phone;
		this.lat = lat;
		this.lng = lng;
		this.isRecommand = isRecommand;
		this.recommandSort = recommandSort;
		this.putupRemain = putupRemain;
		this.promRemain = promRemain;
		this.memRemain = memRemain;
		this.localSetting = localSetting;
		this.descr = descr;
		this.updateTime = updateTime;
		this.addTime = addTime;
	}

	// Property accessors
	@SequenceGenerator(name = "generator", sequenceName = "SEQ_STORE")
	@Id
	@GeneratedValue(strategy = SEQUENCE, generator = "generator")
	@Column(name = "STORE_ID", unique = true, nullable = false, precision = 15, scale = 0)
	public Long getStoreId() {
		return this.storeId;
	}

	public void setStoreId(Long storeId) {
		this.storeId = storeId;
	}

	@Column(name = "COMPANY_ID", nullable = false, precision = 15, scale = 0)
	public Long getCompanyId() {
		return this.companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	@Column(name = "REGION_ID", nullable = false, precision = 15, scale = 0)
	public Long getRegionId() {
		return this.regionId;
	}

	public void setRegionId(Long regionId) {
		this.regionId = regionId;
	}

	@Column(name = "NAME", nullable = false, length = 150)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "IS_OPEN", nullable = false, precision = 1, scale = 0)
	public Boolean getIsOpen() {
		return this.isOpen;
	}

	public void setIsOpen(Boolean isOpen) {
		this.isOpen = isOpen;
	}

	@Column(name = "IS_OPEN_ONLINE", nullable = false, precision = 1, scale = 0)
	public Boolean getIsOpenOnline() {
		return this.isOpenOnline;
	}

	public void setIsOpenOnline(Boolean isOpenOnline) {
		this.isOpenOnline = isOpenOnline;
	}

	@Column(name = "IS_OPEN_LOCAL", nullable = false, precision = 1, scale = 0)
	public Boolean getIsOpenLocal() {
		return this.isOpenLocal;
	}

	public void setIsOpenLocal(Boolean isOpenLocal) {
		this.isOpenLocal = isOpenLocal;
	}

	@Column(name = "GOODS_SCORE", nullable = false, precision = 8)
	public Float getGoodsScore() {
		return this.goodsScore;
	}

	public void setGoodsScore(Float goodsScore) {
		this.goodsScore = goodsScore;
	}

	@Column(name = "SERVICE_SCORE", nullable = false, precision = 8)
	public Float getServiceScore() {
		return this.serviceScore;
	}

	public void setServiceScore(Float serviceScore) {
		this.serviceScore = serviceScore;
	}

	@Column(name = "DELIVERY_SCORE", nullable = false, precision = 8)
	public Float getDeliveryScore() {
		return this.deliveryScore;
	}

	public void setDeliveryScore(Float deliveryScore) {
		this.deliveryScore = deliveryScore;
	}

	@Column(name = "LOGO", length = 100)
	public String getLogo() {
		return this.logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	@Column(name = "REGION_PATH", nullable = false, length = 100)
	public String getRegionPath() {
		return this.regionPath;
	}

	public void setRegionPath(String regionPath) {
		this.regionPath = regionPath;
	}

	@Column(name = "ADDRESS", nullable = false, length = 250)
	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "IS_NEW_ORDER", nullable = false, precision = 1, scale = 0)
	public Boolean getIsNewOrder() {
		return this.isNewOrder;
	}

	public void setIsNewOrder(Boolean isNewOrder) {
		this.isNewOrder = isNewOrder;
	}

	@Column(name = "CONTACTS", length = 60)
	public String getContacts() {
		return this.contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}

	@Column(name = "PHONE", length = 20)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "LAT", precision = 8, scale = 6)
	public Double getLat() {
		return this.lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	@Column(name = "LNG", precision = 9, scale = 6)
	public Double getLng() {
		return this.lng;
	}

	public void setLng(Double lng) {
		this.lng = lng;
	}

	@Column(name = "IS_RECOMMAND", nullable = false, precision = 1, scale = 0)
	public Boolean getIsRecommand() {
		return this.isRecommand;
	}

	public void setIsRecommand(Boolean isRecommand) {
		this.isRecommand = isRecommand;
	}

	@Column(name = "RECOMMAND_SORT", nullable = false, precision = 15, scale = 0)
	public Long getRecommandSort() {
		return this.recommandSort;
	}

	public void setRecommandSort(Long recommandSort) {
		this.recommandSort = recommandSort;
	}

	@Column(name = "PUTUP_REMAIN", nullable = false, precision = 8, scale = 0)
	public Integer getPutupRemain() {
		return this.putupRemain;
	}

	public void setPutupRemain(Integer putupRemain) {
		this.putupRemain = putupRemain;
	}

	@Column(name = "PROM_REMAIN", nullable = false, precision = 8, scale = 0)
	public Integer getPromRemain() {
		return this.promRemain;
	}

	public void setPromRemain(Integer promRemain) {
		this.promRemain = promRemain;
	}

	@Column(name = "MEM_REMAIN", nullable = false, precision = 8, scale = 0)
	public Integer getMemRemain() {
		return this.memRemain;
	}

	public void setMemRemain(Integer memRemain) {
		this.memRemain = memRemain;
	}

	@Column(name = "LOCAL_SETTING", length = 1000)
	public String getLocalSetting() {
		return this.localSetting;
	}

	public void setLocalSetting(String localSetting) {
		this.localSetting = localSetting;
	}

	@Column(name = "DESCR", length = 1000)
	public String getDescr() {
		return this.descr;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	@Column(name = "UPDATE_TIME", nullable = false, precision = 15, scale = 0)
	public Long getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Long updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "ADD_TIME", nullable = false, precision = 15, scale = 0)
	public Long getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Long addTime) {
		this.addTime = addTime;
	}

}